import createAxios from '/@/utils/axios'

export function getImList(params: object = {}) {
    return createAxios({
        url: '/customer/conversations/getImList',
        data: params,
        method: 'post',
    })
}

export function getImInfo(params: object = {}) {
    return createAxios({
        url: '/customer/conversations/getImInfo',
        data: params,
        method: 'post',
    })
}

export function uploadImg(params: FormData) {
    return createAxios({
        url: '/customer/conversations/uploadImage',
        data: params,
        method: 'post',
    })
}

export function sendText(params: object = {}) {
    return createAxios({
        url: '/customer/conversations/sendText',
        data: params,
        method: 'post',
    })
}

export function sendImage(params: object = {}) {
    return createAxios({
        url: '/customer/conversations/sendImage',
        data: params,
        method: 'post',
    })
}

export function messagesReadOperate(params: object = {}) {
    return createAxios({
        url: '/customer/conversations/messagesReadOperate',
        data: params,
        method: 'post',
    })
}

export function getSkuInfo(params: object = {}) {
    return createAxios({
        url: '/customer/Conversations/getSkuInfo',
        data: params,
        method: 'post',
    })
}

export function getTrackInfo(params: object = {}) {
    return createAxios({
        url: '/customer/Conversations/getTrackInfo ',
        data: params,
        method: 'post',
    })
}